#1F00A8

A color in the Violet family

#1f00a8 is a color in the Violet family: RGB(31, 0, 168), HSL(251°, 100%, 33%), CMYK(82%, 100%, 0%, 34%). Closest named color: darkblue. Contrast is 12.93:1 on white and 1.62:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#1f00a8
RGBrgb(31 0 168)
RGB (legacy)rgb(31, 0, 168)
RGB %rgb(12% 0% 66%)
HSLhsl(251 100% 33%)
HSV / HSBhsv(251, 100%, 66%)
HWBhwb(251 0% 34%)
CMYKcmyk(82%, 100%, 0%, 34%)
CIELAB (D50)lab(18.71 50.71 -79.63)
LCHlch(18.71 94.4 302.49)
OKLaboklab(0.3418 0.0039 -0.222)
OKLCHoklch(0.3418 0.222 271.01)
Decimal2031784

Properties

Color ToneViolet
Closest named colordarkblue ΔE 6.4
Closest web-safe color#330099
Hue251°
Saturation (HSL / HSV)100% / 100%
Lightness (HSL)33%
Brightness or Value (HSV)66%
Luminance (Rec.601 / Rec.709)11% / 7%
Relative luminance (WCAG)0.0312
Red / Green / Blue31 / 0 / 168

WCAG 2.2 Contrast Ratio

On White (#ffffff)
12.93:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.62:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 96.5 / 0 · As background with white / black text: Lc -100.2 / 7.4

Lightness Scale (OKLCH 50–950)

Eleven steps that change only perceived lightness while keeping hue and chroma — ready to use as design-system color tokens.

Tints (mixed with white)

Shades (mixed with black)

Color Harmonies

Color Vision Deficiency Simulation

Estimated appearance of this color for people with color vision deficiencies (Machado 2009).

Similar Named Colors

Use in CSS

:root {
  --color-brand: #1f00a8;
  --color-brand-oklch: oklch(34.18% 0.222 271.01);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(31 0 168 / 50%); }
/* Tailwind CSS */
<div class="bg-[#1f00a8] text-[#1f00a8] border-[#1f00a8]">