#021235#021235

#021235 is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 19.5% C 0.073 H 261.1°. Best body text is #FFFFFF at 18.41:1 contrast (WCAG AA passes).

Color values

HEX#021235
RGBrgb(2, 18, 53)
HSLhsl(221, 93%, 11%)
HSVhsv(221, 96%, 21%)
CMYKcmyk(96.2%, 66%, 0%, 79.2%)
CIE-LABlab(6.34, 8.82, -24.80)
CIE-LCHlch(6.34, 26.32, 289.59°)
OKLaboklab(19.48% -0.0114 -0.0723)
OKLCHoklch(19.48% 0.073 261.1)
XYZxyz(0.8837, 0.7024, 3.4565)
Luminance0.0070 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#021235 #352502
analogous
#022B35 #021235 #0B0235
triadic
#021235 #350212 #123502
tetradic
#021235 #35022B #352502 #02350B
square
#021235 #35022B #352502 #02350B
split-complementary
#021235 #350B02 #2B3502
monochromatic
#010A1D #010A1D #021235 #042670 #063AAB

Accessibility & contrast

On white

18.41
#021235 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#021235 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #021235
18.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##021235#FFFFFF#000000##FFFFFF
##0212351.0018.411.1418.41
#FFFFFF18.411.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001736
Deuteranopia (green-blind)
#001234
Tritanopia (blue-blind)
#001B21
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #021235;
/* rgb */ color: rgb(2, 18, 53);
/* oklch */ color: oklch(19.5% 0.073 261.1);
Tailwind
colors: {
  custom: {
    50: '#4c4f6c',
    500: '#021235',
    950: '#000000',
  },
}
SCSS
$custom: #021235;
$custom-light: #4c4f6c;
$custom-dark: #000000;
JSON
{
  "hex": "#021235",
  "rgb": {
    "r": 2,
    "g": 18,
    "b": 53
  },
  "hsl": {
    "h": 221.176,
    "s": 92.727,
    "l": 10.784
  },
  "oklch": {
    "l": 0.19476,
    "c": 0.07322,
    "h": 261.1
  },
  "luminance": 0.00703
}

Semantic roles & 50–950 ramp

primary
#021235
secondary
#795B1A
accent
#BC29FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010107
muted
#77777A

Preview Lab

Preview with #021235

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

Preview Lab → · Contrast checker → · Palette generator →

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