#1F237A#1F237A

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

Color values

HEX#1F237A
RGBrgb(31, 35, 122)
HSLhsl(237, 59%, 30%)
HSVhsv(237, 75%, 48%)
CMYKcmyk(74.6%, 71.3%, 0%, 52.2%)
CIE-LABlab(19.63, 29.65, -49.78)
CIE-LCHlch(19.63, 57.94, 300.78°)
OKLaboklab(31.94% 0.007 -0.1439)
OKLCHoklch(31.94% 0.144 272.8)
XYZxyz(4.6778, 2.8980, 18.7214)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F237A #7A761F
analogous
#1F507A #1F237A #491F7A
triadic
#1F237A #7A1F23 #237A1F
tetradic
#1F237A #7A1F50 #7A761F #1F7A49
square
#1F237A #7A1F50 #7A761F #1F7A49
split-complementary
#1F237A #7A491F #507A1F
monochromatic
#060718 #131549 #1F237A #2B31AB #444ACF

Accessibility & contrast

On white

13.29
#1F237A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#1F237A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F237A
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F237A#FFFFFF#000000##FFFFFF
##1F237A1.0013.291.5813.29
#FFFFFF13.291.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347D
Deuteranopia (green-blind)
#002B78
Tritanopia (blue-blind)
#003B4B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1f237a;
/* rgb */ color: rgb(31, 35, 122);
/* oklch */ color: oklch(31.9% 0.144 272.8);
Tailwind
colors: {
  custom: {
    50: '#6a5ea1',
    500: '#1f237a',
    950: '#000000',
  },
}
SCSS
$custom: #1f237a;
$custom-light: #6a5ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f237a",
  "rgb": {
    "r": 31,
    "g": 35,
    "b": 122
  },
  "hsl": {
    "h": 237.363,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.31942,
    "c": 0.14411,
    "h": 272.8
  },
  "luminance": 0.02899
}

Semantic roles & 50–950 ramp

primary
#1F237A
secondary
#ADA947
accent
#DC45E3
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1F237A

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

Preview Lab → · Contrast checker → · Palette generator →

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