#0F235B#0F235B

#0F235B is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.0% C 0.104 H 265.2°. Best body text is #FFFFFF at 14.87:1 contrast (WCAG AA passes).

Color values

HEX#0F235B
RGBrgb(15, 35, 91)
HSLhsl(224, 72%, 21%)
HSVhsv(224, 84%, 36%)
CMYKcmyk(83.5%, 61.5%, 0%, 64.3%)
CIE-LABlab(15.79, 15.26, -35.87)
CIE-LCHlch(15.79, 38.98, 293.04°)
OKLaboklab(27.97% -0.0086 -0.1036)
OKLCHoklch(27.97% 0.104 265.2)
XYZxyz(2.6857, 2.0586, 10.1513)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F235B #5B470F
analogous
#0F495B #0F235B #210F5B
triadic
#0F235B #5B0F23 #235B0F
tetradic
#0F235B #5B0F49 #5B470F #0F5B21
square
#0F235B #5B0F49 #5B470F #0F5B21
split-complementary
#0F235B #5B210F #495B0F
monochromatic
#040A1A #060F26 #0F235B #183790 #204BC4

Accessibility & contrast

On white

14.87
#0F235B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#0F235B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F235B
14.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F235B#FFFFFF#000000##FFFFFF
##0F235B1.0014.871.4114.87
#FFFFFF14.871.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5D
Deuteranopia (green-blind)
#00245A
Tritanopia (blue-blind)
#00313B
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #0f235b;
/* rgb */ color: rgb(15, 35, 91);
/* oklch */ color: oklch(28.0% 0.104 265.2);
Tailwind
colors: {
  custom: {
    50: '#5b5d8a',
    500: '#0f235b',
    950: '#000000',
  },
}
SCSS
$custom: #0f235b;
$custom-light: #5b5d8a;
$custom-dark: #000000;
JSON
{
  "hex": "#0f235b",
  "rgb": {
    "r": 15,
    "g": 35,
    "b": 91
  },
  "hsl": {
    "h": 224.211,
    "s": 71.698,
    "l": 20.784
  },
  "oklch": {
    "l": 0.27967,
    "c": 0.10393,
    "h": 265.2
  },
  "luminance": 0.02059
}

Semantic roles & 50–950 ramp

primary
#0F235B
secondary
#957A31
accent
#BF39EE
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#04040C
muted
#79797D

Preview Lab

Preview with #0F235B

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

Preview Lab → · Contrast checker → · Palette generator →

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