#02007B#02007B

#02007B is a dark, vivid blue. Relative luminance 0.014; OKLCH L 26.4% C 0.182 H 264.7°. Best body text is #FFFFFF at 16.30:1 contrast (WCAG AA passes).

Color values

HEX#02007B
RGBrgb(2, 0, 123)
HSLhsl(241, 100%, 24%)
HSVhsv(241, 100%, 48%)
CMYKcmyk(98.4%, 100%, 0%, 51.8%)
CIE-LABlab(12.24, 46.19, -62.73)
CIE-LCHlch(12.24, 77.90, 306.36°)
OKLaboklab(26.43% -0.0168 -0.1812)
OKLCHoklch(26.43% 0.182 264.7)
XYZxyz(3.5990, 1.4425, 18.8238)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#02007B #797B00
analogous
#003C7B #02007B #40007B
triadic
#02007B #7B0200 #007B02
tetradic
#02007B #7B003C #797B00 #007B40
square
#02007B #7B003C #797B00 #007B40
split-complementary
#02007B #7B4000 #3C7B00
monochromatic
#00001F #01003E #02007B #0300B8 #0400F5

Accessibility & contrast

On white

16.30
#02007B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#02007B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #02007B
16.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##02007B#FFFFFF#000000##FFFFFF
##02007B1.0016.301.2916.30
#FFFFFF16.301.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00267E
Deuteranopia (green-blind)
#001979
Tritanopia (blue-blind)
#003045
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #02007b;
/* rgb */ color: rgb(2, 0, 123);
/* oklch */ color: oklch(26.4% 0.182 264.7);
Tailwind
colors: {
  custom: {
    50: '#664aa3',
    500: '#02007b',
    950: '#000000',
  },
}
SCSS
$custom: #02007b;
$custom-light: #664aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#02007b",
  "rgb": {
    "r": 2,
    "g": 0,
    "b": 123
  },
  "hsl": {
    "h": 240.976,
    "s": 100,
    "l": 24.118
  },
  "oklch": {
    "l": 0.2643,
    "c": 0.18194,
    "h": 264.7
  },
  "luminance": 0.01443
}

Semantic roles & 50–950 ramp

primary
#02007B
secondary
#B4B720
accent
#FF29FC
background
#F6F4FA
surface
#ECE7F4
border
#C7C3CE
text
#07010F
muted
#7A777F

Preview Lab

Preview with #02007B

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

Preview Lab → · Contrast checker → · Palette generator →

#02007B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva