#1F236A#1F236A

#1F236A is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.3% C 0.122 H 274.1°. Best body text is #FFFFFF at 13.94:1 contrast (WCAG AA passes).

Color values

HEX#1F236A
RGBrgb(31, 35, 106)
HSLhsl(237, 55%, 27%)
HSVhsv(237, 71%, 42%)
CMYKcmyk(70.8%, 67%, 0%, 58.4%)
CIE-LABlab(18.07, 23.62, -42.02)
CIE-LCHlch(18.07, 48.20, 299.34°)
OKLaboklab(30.33% 0.0086 -0.1212)
OKLCHoklch(30.33% 0.122 274.1)
XYZxyz(3.7668, 2.5336, 13.9234)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F236A #6A661F
analogous
#1F496A #1F236A #411F6A
triadic
#1F236A #6A1F23 #236A1F
tetradic
#1F236A #6A1F49 #6A661F #1F6A41
square
#1F236A #6A1F49 #6A661F #1F6A41
split-complementary
#1F236A #6A411F #496A1F
monochromatic
#070818 #11133B #1F236A #2D3399 #3D44C6

Accessibility & contrast

On white

13.94
#1F236A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F236A
13.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F236A#FFFFFF#000000##FFFFFF
##1F236A1.0013.941.5113.94
#FFFFFF13.941.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306C
Deuteranopia (green-blind)
#002969
Tritanopia (blue-blind)
#003543
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1f236a;
/* rgb */ color: rgb(31, 35, 106);
/* oklch */ color: oklch(30.3% 0.122 274.1);
Tailwind
colors: {
  custom: {
    50: '#665e95',
    500: '#1f236a',
    950: '#000000',
  },
}
SCSS
$custom: #1f236a;
$custom-light: #665e95;
$custom-dark: #000000;
JSON
{
  "hex": "#1f236a",
  "rgb": {
    "r": 31,
    "g": 35,
    "b": 106
  },
  "hsl": {
    "h": 236.8,
    "s": 54.745,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30328,
    "c": 0.12153,
    "h": 274.1
  },
  "luminance": 0.02534
}

Semantic roles & 50–950 ramp

primary
#1F236A
secondary
#9E9A47
accent
#D64ADE
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #1F236A

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

Preview Lab → · Contrast checker → · Palette generator →

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