#1F238A#1F238A

#1F238A is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.7% C 0.165 H 271.6°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#1F238A
RGBrgb(31, 35, 138)
HSLhsl(238, 63%, 33%)
HSVhsv(238, 78%, 54%)
CMYKcmyk(77.5%, 74.6%, 0%, 45.9%)
CIE-LABlab(21.31, 35.48, -57.12)
CIE-LCHlch(21.31, 67.24, 301.85°)
OKLaboklab(33.65% 0.0047 -0.1653)
OKLCHoklch(33.65% 0.165 271.6)
XYZxyz(5.7520, 3.3277, 24.3790)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F238A #8A861F
analogous
#1F588A #1F238A #501F8A
triadic
#1F238A #8A1F23 #238A1F
tetradic
#1F238A #8A1F58 #8A861F #1F8A50
square
#1F238A #8A1F58 #8A861F #1F8A50
split-complementary
#1F238A #8A501F #588A1F
monochromatic
#090A26 #141658 #1F238A #2A30BC #4C52D7

Accessibility & contrast

On white

12.61
#1F238A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#1F238A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F238A
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F238A#FFFFFF#000000##FFFFFF
##1F238A1.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388D
Deuteranopia (green-blind)
#002E88
Tritanopia (blue-blind)
#004154
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1f238a;
/* rgb */ color: rgb(31, 35, 138);
/* oklch */ color: oklch(33.7% 0.165 271.6);
Tailwind
colors: {
  custom: {
    50: '#6e5fad',
    500: '#1f238a',
    950: '#000000',
  },
}
SCSS
$custom: #1f238a;
$custom-light: #6e5fad;
$custom-dark: #000000;
JSON
{
  "hex": "#1f238a",
  "rgb": {
    "r": 31,
    "g": 35,
    "b": 138
  },
  "hsl": {
    "h": 237.757,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33654,
    "c": 0.1654,
    "h": 271.6
  },
  "luminance": 0.03328
}

Semantic roles & 50–950 ramp

primary
#1F238A
secondary
#BAB54B
accent
#E041E6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1F238A

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

Preview Lab → · Contrast checker → · Palette generator →

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