#231F9C#231F9C

#231F9C is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.4% C 0.191 H 272.3°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#231F9C
RGBrgb(35, 31, 156)
HSLhsl(242, 67%, 37%)
HSVhsv(242, 80%, 61%)
CMYKcmyk(77.6%, 80.1%, 0%, 38.8%)
CIE-LABlab(22.78, 44.22, -65.81)
CIE-LCHlch(22.78, 79.29, 303.90°)
OKLaboklab(35.35% 0.0075 -0.1905)
OKLCHoklch(35.35% 0.191 272.3)
XYZxyz(7.1819, 3.7368, 31.7888)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231F9C #989C1F
analogous
#1F5A9C #231F9C #621F9C
triadic
#231F9C #9C231F #1F9C23
tetradic
#231F9C #9C1F5A #989C1F #1F9C62
square
#231F9C #9C1F5A #989C1F #1F9C62
split-complementary
#231F9C #9C621F #5A9C1F
monochromatic
#0C0B36 #181569 #231F9C #2E29CF #5C58DE

Accessibility & contrast

On white

12.02
#231F9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#231F9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231F9C
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231F9C#FFFFFF#000000##FFFFFF
##231F9C1.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9F
Deuteranopia (green-blind)
#00309A
Tritanopia (blue-blind)
#00465D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #231f9c;
/* rgb */ color: rgb(35, 31, 156);
/* oklch */ color: oklch(35.4% 0.191 272.3);
Tailwind
colors: {
  custom: {
    50: '#745ebb',
    500: '#231f9c',
    950: '#000000',
  },
}
SCSS
$custom: #231f9c;
$custom-light: #745ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#231f9c",
  "rgb": {
    "r": 35,
    "g": 31,
    "b": 156
  },
  "hsl": {
    "h": 241.92,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.35354,
    "c": 0.19063,
    "h": 272.3
  },
  "luminance": 0.03738
}

Semantic roles & 50–950 ramp

primary
#231F9C
secondary
#BEC155
accent
#EA3EE4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #231F9C

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

Preview Lab → · Contrast checker → · Palette generator →

#231F9C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva