#020F34#020F34

#020F34 is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 18.6% C 0.076 H 262.9°. Best body text is #FFFFFF at 18.74:1 contrast (WCAG AA passes).

Color values

HEX#020F34
RGBrgb(2, 15, 52)
HSLhsl(224, 93%, 11%)
HSVhsv(224, 96%, 20%)
CMYKcmyk(96.2%, 71.2%, 0%, 79.6%)
CIE-LABlab(5.44, 9.95, -25.52)
CIE-LCHlch(5.44, 27.39, 291.30°)
OKLaboklab(18.61% -0.0094 -0.0756)
OKLCHoklch(18.61% 0.076 262.9)
XYZxyz(0.8155, 0.6024, 3.3214)
Luminance0.0060 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#020F34 #342702
analogous
#022834 #020F34 #0E0234
triadic
#020F34 #34020F #0F3402
tetradic
#020F34 #340228 #342702 #02340E
square
#020F34 #340228 #342702 #02340E
split-complementary
#020F34 #340E02 #283402
monochromatic
#01081D #01081D #020F34 #04206F #0731AA

Accessibility & contrast

On white

18.74
#020F34 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#020F34 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #020F34
18.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##020F34#FFFFFF#000000##FFFFFF
##020F341.0018.741.1218.74
#FFFFFF18.741.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001435
Deuteranopia (green-blind)
#001033
Tritanopia (blue-blind)
#00191F
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #020f34;
/* rgb */ color: rgb(2, 15, 52);
/* oklch */ color: oklch(18.6% 0.076 262.9);
Tailwind
colors: {
  custom: {
    50: '#4b4d6c',
    500: '#020f34',
    950: '#000000',
  },
}
SCSS
$custom: #020f34;
$custom-light: #4b4d6c;
$custom-dark: #000000;
JSON
{
  "hex": "#020f34",
  "rgb": {
    "r": 2,
    "g": 15,
    "b": 52
  },
  "hsl": {
    "h": 224.4,
    "s": 92.593,
    "l": 10.588
  },
  "oklch": {
    "l": 0.18609,
    "c": 0.07614,
    "h": 262.9
  },
  "luminance": 0.00602
}

Semantic roles & 50–950 ramp

primary
#020F34
secondary
#78601A
accent
#C729FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010107
muted
#77777A

Preview Lab

Preview with #020F34

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#020F34 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva