#0F225E#0F225E

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

Color values

HEX#0F225E
RGBrgb(15, 34, 94)
HSLhsl(226, 72%, 21%)
HSVhsv(226, 84%, 37%)
CMYKcmyk(84%, 63.8%, 0%, 63.1%)
CIE-LABlab(15.77, 17.30, -37.92)
CIE-LCHlch(15.77, 41.68, 294.52°)
OKLaboklab(28.03% -0.0078 -0.1096)
OKLCHoklch(28.03% 0.11 265.9)
XYZxyz(2.7887, 2.0534, 10.8369)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F225E #5E4B0F
analogous
#0F4A5E #0F225E #240F5E
triadic
#0F225E #5E0F22 #225E0F
tetradic
#0F225E #5E0F4A #5E4B0F #0F5E24
square
#0F225E #5E0F4A #5E4B0F #0F5E24
split-complementary
#0F225E #5E240F #4A5E0F
monochromatic
#040A1A #070F29 #0F225E #173593 #2048C8

Accessibility & contrast

On white

14.89
#0F225E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F225E
14.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F225E#FFFFFF#000000##FFFFFF
##0F225E1.0014.891.4114.89
#FFFFFF14.891.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B60
Deuteranopia (green-blind)
#00245D
Tritanopia (blue-blind)
#00313C
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #0f225e;
/* rgb */ color: rgb(15, 34, 94);
/* oklch */ color: oklch(28.0% 0.110 265.9);
Tailwind
colors: {
  custom: {
    50: '#5c5c8c',
    500: '#0f225e',
    950: '#000000',
  },
}
SCSS
$custom: #0f225e;
$custom-light: #5c5c8c;
$custom-dark: #000000;
JSON
{
  "hex": "#0f225e",
  "rgb": {
    "r": 15,
    "g": 34,
    "b": 94
  },
  "hsl": {
    "h": 225.57,
    "s": 72.477,
    "l": 21.373
  },
  "oklch": {
    "l": 0.28032,
    "c": 0.10987,
    "h": 265.9
  },
  "luminance": 0.02054
}

Semantic roles & 50–950 ramp

primary
#0F225E
secondary
#977F31
accent
#C339EF
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #0F225E

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

Preview Lab → · Contrast checker → · Palette generator →

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