#0F235C#0F235C

#0F235C is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.1% C 0.105 H 265.3°. Best body text is #FFFFFF at 14.84:1 contrast (WCAG AA passes).

Color values

HEX#0F235C
RGBrgb(15, 35, 92)
HSLhsl(224, 72%, 21%)
HSVhsv(224, 84%, 36%)
CMYKcmyk(83.7%, 62%, 0%, 63.9%)
CIE-LABlab(15.88, 15.69, -36.40)
CIE-LCHlch(15.88, 39.63, 293.32°)
OKLaboklab(28.06% -0.0086 -0.1051)
OKLCHoklch(28.06% 0.105 265.3)
XYZxyz(2.7291, 2.0760, 10.3800)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F235C #5C480F
analogous
#0F495C #0F235C #210F5C
triadic
#0F235C #5C0F23 #235C0F
tetradic
#0F235C #5C0F49 #5C480F #0F5C21
square
#0F235C #5C0F49 #5C480F #0F5C21
split-complementary
#0F235C #5C210F #495C0F
monochromatic
#040A1A #060F27 #0F235C #183791 #204BC5

Accessibility & contrast

On white

14.84
#0F235C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#0F235C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F235C
14.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F235C#FFFFFF#000000##FFFFFF
##0F235C1.0014.841.4214.84
#FFFFFF14.841.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5E
Deuteranopia (green-blind)
#00245B
Tritanopia (blue-blind)
#00313B
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #0f235c;
/* rgb */ color: rgb(15, 35, 92);
/* oklch */ color: oklch(28.1% 0.105 265.3);
Tailwind
colors: {
  custom: {
    50: '#5c5d8b',
    500: '#0f235c',
    950: '#000000',
  },
}
SCSS
$custom: #0f235c;
$custom-light: #5c5d8b;
$custom-dark: #000000;
JSON
{
  "hex": "#0f235c",
  "rgb": {
    "r": 15,
    "g": 35,
    "b": 92
  },
  "hsl": {
    "h": 224.416,
    "s": 71.963,
    "l": 20.98
  },
  "oklch": {
    "l": 0.28062,
    "c": 0.10545,
    "h": 265.3
  },
  "luminance": 0.02076
}

Semantic roles & 50–950 ramp

primary
#0F235C
secondary
#957B31
accent
#C039EF
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #0F235C

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

Preview Lab → · Contrast checker → · Palette generator →

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