#252F7A#252F7A

#252F7A is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.6% C 0.127 H 272.2°. Best body text is #FFFFFF at 11.89:1 contrast (WCAG AA passes).

Color values

HEX#252F7A
RGBrgb(37, 47, 122)
HSLhsl(233, 53%, 31%)
HSVhsv(233, 70%, 48%)
CMYKcmyk(69.7%, 61.5%, 0%, 52.2%)
CIE-LABlab(23.10, 22.36, -44.08)
CIE-LCHlch(23.10, 49.43, 296.90°)
OKLaboklab(34.59% 0.0048 -0.127)
OKLCHoklch(34.59% 0.127 272.2)
XYZxyz(5.2911, 3.8310, 18.8692)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252F7A #7A7025
analogous
#25597A #252F7A #45257A
triadic
#252F7A #7A252F #2F7A25
tetradic
#252F7A #7A2559 #7A7025 #257A45
square
#252F7A #7A2559 #7A7025 #257A45
split-complementary
#252F7A #7A4525 #597A25
monochromatic
#090B1C #171D4B #252F7A #3341A9 #505ECA

Accessibility & contrast

On white

11.89
#252F7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#252F7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252F7A
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252F7A#FFFFFF#000000##FFFFFF
##252F7A1.0011.891.7711.89
#FFFFFF11.891.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7C
Deuteranopia (green-blind)
#003379
Tritanopia (blue-blind)
#00424F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #252f7a;
/* rgb */ color: rgb(37, 47, 122);
/* oklch */ color: oklch(34.6% 0.127 272.2);
Tailwind
colors: {
  custom: {
    50: '#6b67a1',
    500: '#252f7a',
    950: '#000000',
  },
}
SCSS
$custom: #252f7a;
$custom-light: #6b67a1;
$custom-dark: #000000;
JSON
{
  "hex": "#252f7a",
  "rgb": {
    "r": 37,
    "g": 47,
    "b": 122
  },
  "hsl": {
    "h": 232.941,
    "s": 53.459,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34589,
    "c": 0.12709,
    "h": 272.2
  },
  "luminance": 0.03831
}

Semantic roles & 50–950 ramp

primary
#252F7A
secondary
#ACA14E
accent
#CC4BDD
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #252F7A

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

Preview Lab → · Contrast checker → · Palette generator →

#252F7A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva