#1F236B#1F236B

#1F236B is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.4% C 0.123 H 274.0°. Best body text is #FFFFFF at 13.90:1 contrast (WCAG AA passes).

Color values

HEX#1F236B
RGBrgb(31, 35, 107)
HSLhsl(237, 55%, 27%)
HSVhsv(237, 71%, 42%)
CMYKcmyk(71%, 67.3%, 0%, 58%)
CIE-LABlab(18.16, 24.00, -42.52)
CIE-LCHlch(18.16, 48.82, 299.44°)
OKLaboklab(30.43% 0.0085 -0.1227)
OKLCHoklch(30.43% 0.123 274)
XYZxyz(3.8191, 2.5546, 14.1989)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F236B #6B671F
analogous
#1F496B #1F236B #411F6B
triadic
#1F236B #6B1F23 #236B1F
tetradic
#1F236B #6B1F49 #6B671F #1F6B41
square
#1F236B #6B1F49 #6B671F #1F6B41
split-complementary
#1F236B #6B411F #496B1F
monochromatic
#070818 #11133C #1F236B #2D339A #3D45C7

Accessibility & contrast

On white

13.90
#1F236B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#1F236B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F236B
13.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F236B#FFFFFF#000000##FFFFFF
##1F236B1.0013.901.5113.90
#FFFFFF13.901.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306D
Deuteranopia (green-blind)
#00296A
Tritanopia (blue-blind)
#003643
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1f236b;
/* rgb */ color: rgb(31, 35, 107);
/* oklch */ color: oklch(30.4% 0.123 274.0);
Tailwind
colors: {
  custom: {
    50: '#665e96',
    500: '#1f236b',
    950: '#000000',
  },
}
SCSS
$custom: #1f236b;
$custom-light: #665e96;
$custom-dark: #000000;
JSON
{
  "hex": "#1f236b",
  "rgb": {
    "r": 31,
    "g": 35,
    "b": 107
  },
  "hsl": {
    "h": 236.842,
    "s": 55.072,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30425,
    "c": 0.12298,
    "h": 274
  },
  "luminance": 0.02555
}

Semantic roles & 50–950 ramp

primary
#1F236B
secondary
#9F9B47
accent
#D749DE
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #1F236B

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

Preview Lab → · Contrast checker → · Palette generator →

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