#0F2158#0F2158

#0F2158 is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.2% C 0.102 H 265.9°. Best body text is #FFFFFF at 15.23:1 contrast (WCAG AA passes).

Color values

HEX#0F2158
RGBrgb(15, 33, 88)
HSLhsl(225, 71%, 20%)
HSVhsv(225, 83%, 35%)
CMYKcmyk(83%, 62.5%, 0%, 65.5%)
CIE-LABlab(14.92, 15.46, -35.29)
CIE-LCHlch(14.92, 38.52, 293.66°)
OKLaboklab(27.23% -0.0072 -0.1019)
OKLCHoklch(27.23% 0.102 265.9)
XYZxyz(2.5017, 1.8936, 9.4643)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F2158 #58460F
analogous
#0F4658 #0F2158 #210F58
triadic
#0F2158 #580F21 #21580F
tetradic
#0F2158 #580F46 #58460F #0F5821
square
#0F2158 #580F46 #58460F #0F5821
split-complementary
#0F2158 #58210F #46580F
monochromatic
#040A1A #060D24 #0F2158 #18358C #2148C1

Accessibility & contrast

On white

15.23
#0F2158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#0F2158 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F2158
15.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F2158#FFFFFF#000000##FFFFFF
##0F21581.0015.231.3815.23
#FFFFFF15.231.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295A
Deuteranopia (green-blind)
#002257
Tritanopia (blue-blind)
#002F38
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #0f2158;
/* rgb */ color: rgb(15, 33, 88);
/* oklch */ color: oklch(27.2% 0.102 265.9);
Tailwind
colors: {
  custom: {
    50: '#5b5b88',
    500: '#0f2158',
    950: '#000000',
  },
}
SCSS
$custom: #0f2158;
$custom-light: #5b5b88;
$custom-dark: #000000;
JSON
{
  "hex": "#0f2158",
  "rgb": {
    "r": 15,
    "g": 33,
    "b": 88
  },
  "hsl": {
    "h": 225.205,
    "s": 70.874,
    "l": 20.196
  },
  "oklch": {
    "l": 0.27228,
    "c": 0.10214,
    "h": 265.9
  },
  "luminance": 0.01894
}

Semantic roles & 50–950 ramp

primary
#0F2158
secondary
#927A31
accent
#C13AEE
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#04040B
muted
#79797C

Preview Lab

Preview with #0F2158

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

Preview Lab → · Contrast checker → · Palette generator →

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