#1F227B#1F227B

#1F227B is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.9% C 0.147 H 272.9°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#1F227B
RGBrgb(31, 34, 123)
HSLhsl(238, 60%, 30%)
HSVhsv(238, 75%, 48%)
CMYKcmyk(74.8%, 72.4%, 0%, 51.8%)
CIE-LABlab(19.49, 30.67, -50.64)
CIE-LCHlch(19.49, 59.21, 301.20°)
OKLaboklab(31.87% 0.0075 -0.1465)
OKLCHoklch(31.87% 0.147 272.9)
XYZxyz(4.7111, 2.8649, 19.0398)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F227B #7B781F
analogous
#1F507B #1F227B #4A1F7B
triadic
#1F227B #7B1F22 #227B1F
tetradic
#1F227B #7B1F50 #7B781F #1F7B4A
square
#1F227B #7B1F50 #7B781F #1F7B4A
split-complementary
#1F227B #7B4A1F #507B1F
monochromatic
#060719 #13144A #1F227B #2B30AC #4449D0

Accessibility & contrast

On white

13.35
#1F227B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#1F227B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F227B
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F227B#FFFFFF#000000##FFFFFF
##1F227B1.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347E
Deuteranopia (green-blind)
#002B79
Tritanopia (blue-blind)
#003B4C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1f227b;
/* rgb */ color: rgb(31, 34, 123);
/* oklch */ color: oklch(31.9% 0.147 272.9);
Tailwind
colors: {
  custom: {
    50: '#6a5da2',
    500: '#1f227b',
    950: '#000000',
  },
}
SCSS
$custom: #1f227b;
$custom-light: #6a5da2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f227b",
  "rgb": {
    "r": 31,
    "g": 34,
    "b": 123
  },
  "hsl": {
    "h": 238.043,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.31875,
    "c": 0.14665,
    "h": 272.9
  },
  "luminance": 0.02865
}

Semantic roles & 50–950 ramp

primary
#1F227B
secondary
#AEAB48
accent
#DE45E3
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1F227B

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

Preview Lab → · Contrast checker → · Palette generator →

#1F227B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva