#0E2157#0E2157

#0E2157 is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.1% C 0.101 H 265.3°. Best body text is #FFFFFF at 15.29:1 contrast (WCAG AA passes).

Color values

HEX#0E2157
RGBrgb(14, 33, 87)
HSLhsl(224, 72%, 20%)
HSVhsv(224, 84%, 34%)
CMYKcmyk(83.9%, 62.1%, 0%, 65.9%)
CIE-LABlab(14.78, 14.90, -34.84)
CIE-LCHlch(14.78, 37.89, 293.16°)
OKLaboklab(27.09% -0.0082 -0.1006)
OKLCHoklch(27.09% 0.101 265.3)
XYZxyz(2.4447, 1.8689, 9.2469)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0E2157 #57440E
analogous
#0E4557 #0E2157 #200E57
triadic
#0E2157 #570E21 #21570E
tetradic
#0E2157 #570E45 #57440E #0E5720
square
#0E2157 #570E45 #57440E #0E5720
split-complementary
#0E2157 #57200E #45570E
monochromatic
#040A1A #060D22 #0E2157 #16358C #1F49C0

Accessibility & contrast

On white

15.29
#0E2157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#0E2157 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0E2157
15.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0E2157#FFFFFF#000000##FFFFFF
##0E21571.0015.291.3715.29
#FFFFFF15.291.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002959
Deuteranopia (green-blind)
#002256
Tritanopia (blue-blind)
#002F38
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #0e2157;
/* rgb */ color: rgb(14, 33, 87);
/* oklch */ color: oklch(27.1% 0.101 265.3);
Tailwind
colors: {
  custom: {
    50: '#5a5b87',
    500: '#0e2157',
    950: '#000000',
  },
}
SCSS
$custom: #0e2157;
$custom-light: #5a5b87;
$custom-dark: #000000;
JSON
{
  "hex": "#0e2157",
  "rgb": {
    "r": 14,
    "g": 33,
    "b": 87
  },
  "hsl": {
    "h": 224.384,
    "s": 72.277,
    "l": 19.804
  },
  "oklch": {
    "l": 0.27086,
    "c": 0.1009,
    "h": 265.3
  },
  "luminance": 0.01869
}

Semantic roles & 50–950 ramp

primary
#0E2157
secondary
#917830
accent
#C039EF
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040B
muted
#79797C

Preview Lab

Preview with #0E2157

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

Preview Lab → · Contrast checker → · Palette generator →

#0E2157 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva