#1F236C#1F236C

#1F236C is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.5% C 0.124 H 273.9°. Best body text is #FFFFFF at 13.86:1 contrast (WCAG AA passes).

Color values

HEX#1F236C
RGBrgb(31, 35, 108)
HSLhsl(237, 55%, 27%)
HSVhsv(237, 71%, 42%)
CMYKcmyk(71.3%, 67.6%, 0%, 57.6%)
CIE-LABlab(18.26, 24.38, -43.02)
CIE-LCHlch(18.26, 49.44, 299.54°)
OKLaboklab(30.52% 0.0085 -0.1241)
OKLCHoklch(30.52% 0.124 273.9)
XYZxyz(3.8720, 2.5757, 14.4776)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F236C #6C681F
analogous
#1F4A6C #1F236C #421F6C
triadic
#1F236C #6C1F23 #236C1F
tetradic
#1F236C #6C1F4A #6C681F #1F6C42
square
#1F236C #6C1F4A #6C681F #1F6C42
split-complementary
#1F236C #6C421F #4A6C1F
monochromatic
#070818 #11143C #1F236C #2D329C #3E45C8

Accessibility & contrast

On white

13.86
#1F236C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F236C
13.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F236C#FFFFFF#000000##FFFFFF
##1F236C1.0013.861.5213.86
#FFFFFF13.861.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f236c;
/* rgb */ color: rgb(31, 35, 108);
/* oklch */ color: oklch(30.5% 0.124 273.9);
Tailwind
colors: {
  custom: {
    50: '#665e97',
    500: '#1f236c',
    950: '#000000',
  },
}
SCSS
$custom: #1f236c;
$custom-light: #665e97;
$custom-dark: #000000;
JSON
{
  "hex": "#1f236c",
  "rgb": {
    "r": 31,
    "g": 35,
    "b": 108
  },
  "hsl": {
    "h": 236.883,
    "s": 55.396,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30523,
    "c": 0.12443,
    "h": 273.9
  },
  "luminance": 0.02576
}

Semantic roles & 50–950 ramp

primary
#1F236C
secondary
#A09B47
accent
#D749DF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #1F236C

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

Preview Lab → · Contrast checker → · Palette generator →

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