#021230#021230

#021230 is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 19.0% C 0.065 H 259.3°. Best body text is #FFFFFF at 18.55:1 contrast (WCAG AA passes).

Color values

HEX#021230
RGBrgb(2, 18, 48)
HSLhsl(219, 92%, 10%)
HSVhsv(219, 96%, 19%)
CMYKcmyk(95.8%, 62.5%, 0%, 81.2%)
CIE-LABlab(5.95, 6.08, -21.76)
CIE-LCHlch(5.95, 22.59, 285.61°)
OKLaboklab(18.97% -0.012 -0.0638)
OKLCHoklch(18.97% 0.065 259.3)
XYZxyz(0.7746, 0.6588, 2.8821)
Luminance0.0066 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#021230 #302002
analogous
#022930 #021230 #090230
triadic
#021230 #300212 #123002
tetradic
#021230 #300229 #302002 #023009
square
#021230 #300229 #302002 #023009
split-complementary
#021230 #300902 #293002
monochromatic
#010B1D #010B1D #021230 #04286B #073EA6

Accessibility & contrast

On white

18.55
#021230 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#021230 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #021230
18.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##021230#FFFFFF#000000##FFFFFF
##0212301.0018.551.1318.55
#FFFFFF18.551.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011531
Deuteranopia (green-blind)
#00112F
Tritanopia (blue-blind)
#00191E
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #021230;
/* rgb */ color: rgb(2, 18, 48);
/* oklch */ color: oklch(19.0% 0.065 259.3);
Tailwind
colors: {
  custom: {
    50: '#4a4f68',
    500: '#021230',
    950: '#000000',
  },
}
SCSS
$custom: #021230;
$custom-light: #4a4f68;
$custom-dark: #000000;
JSON
{
  "hex": "#021230",
  "rgb": {
    "r": 2,
    "g": 18,
    "b": 48
  },
  "hsl": {
    "h": 219.13,
    "s": 92,
    "l": 9.804
  },
  "oklch": {
    "l": 0.1897,
    "c": 0.0649,
    "h": 259.3
  },
  "luminance": 0.00659
}

Semantic roles & 50–950 ramp

primary
#021230
secondary
#755519
accent
#B429FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010206
muted
#77787A

Preview Lab

Preview with #021230

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

Preview Lab → · Contrast checker → · Palette generator →

#021230 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva