#1F236D#1F236D

#1F236D is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.6% C 0.126 H 273.8°. Best body text is #FFFFFF at 13.82:1 contrast (WCAG AA passes).

Color values

HEX#1F236D
RGBrgb(31, 35, 109)
HSLhsl(237, 56%, 27%)
HSVhsv(237, 72%, 43%)
CMYKcmyk(71.6%, 67.9%, 0%, 57.3%)
CIE-LABlab(18.35, 24.76, -43.51)
CIE-LCHlch(18.35, 50.06, 299.64°)
OKLaboklab(30.62% 0.0084 -0.1256)
OKLCHoklch(30.62% 0.126 273.8)
XYZxyz(3.9255, 2.5971, 14.7595)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F236D #6D691F
analogous
#1F4A6D #1F236D #421F6D
triadic
#1F236D #6D1F23 #236D1F
tetradic
#1F236D #6D1F4A #6D691F #1F6D42
square
#1F236D #6D1F4A #6D691F #1F6D42
split-complementary
#1F236D #6D421F #4A6D1F
monochromatic
#070818 #11143D #1F236D #2D329D #3E45C8

Accessibility & contrast

On white

13.82
#1F236D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#1F236D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F236D
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F236D#FFFFFF#000000##FFFFFF
##1F236D1.0013.821.5213.82
#FFFFFF13.821.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306F
Deuteranopia (green-blind)
#00296C
Tritanopia (blue-blind)
#003644
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1f236d;
/* rgb */ color: rgb(31, 35, 109);
/* oklch */ color: oklch(30.6% 0.126 273.8);
Tailwind
colors: {
  custom: {
    50: '#665e98',
    500: '#1f236d',
    950: '#000000',
  },
}
SCSS
$custom: #1f236d;
$custom-light: #665e98;
$custom-dark: #000000;
JSON
{
  "hex": "#1f236d",
  "rgb": {
    "r": 31,
    "g": 35,
    "b": 109
  },
  "hsl": {
    "h": 236.923,
    "s": 55.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30622,
    "c": 0.12587,
    "h": 273.8
  },
  "luminance": 0.02597
}

Semantic roles & 50–950 ramp

primary
#1F236D
secondary
#A19C47
accent
#D749DF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #1F236D

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

Preview Lab → · Contrast checker → · Palette generator →

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